import {
  Button,
  NavBar,
  Tabbar,
  TabbarItem,
  Checkbox,
  Toast,
  Icon,
  Popup,
  Swipe,
  SwipeItem,
  List,
  PullRefresh,
  ActionBarIcon,
  Search,
  Loading,
  Field,
  SwipeCell,
  Uploader,
  Form,
  ActionSheet,
  // DatetimePicker,
  Picker,
  CheckboxGroup,
  Dialog,
  Switch,
  RadioGroup,
  Radio,
  Overlay,
  Sticky,
} from 'vant';
import 'vant/lib/index.css';

const components: any = [
  Button,
  NavBar,
  Tabbar,
  TabbarItem,
  Checkbox,
  Toast,
  Icon,
  Popup,
  Swipe,
  SwipeItem,
  List,
  PullRefresh,
  ActionBarIcon,
  Search,
  Loading,
  Field,
  SwipeCell,
  Uploader,
  Form,
  ActionSheet,
  Picker,
  CheckboxGroup,
  Dialog,
  Switch,
  RadioGroup,
  Radio,
  Overlay,
  Sticky,
];

export default {
  install(Vue: any) {
    components.forEach((comp: any) => Vue.use(comp));
  },
};
